package com.czkt.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.czkt.entity.vo.BasDictAndService;
import com.czkt.mapper.SvrRptMapper;
import com.czkt.service.SvrRptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SvrRptServiceImpl implements SvrRptService {

    @Resource
    SvrRptMapper svrRptMapper;

    @Override
    public IPage<BasDictAndService> selectBasDictByService(Integer pageIndex,Integer pageSize) {
        Page<BasDictAndService> page = new Page<>(pageIndex,pageSize);
        return svrRptMapper.selectBasDictByService(page);
    }

    @Override
    public List<BasDictAndService> selectBasDictBySvr() {
        return svrRptMapper.selectBasDictBySvr();
    }
}
